package com.ucode.springboot.starter.fileStorage;


/**
 * 上传文件
 * @author: liliang
 * @date: 2020年1月12日 下午4:45:17
 */
public class FileInfo {

    /**
     * 原始文件名称
     */
    private String originalFilename;
    /**
     * 存储文件Key=目录+文件名称
     * 例如:aa/aaa/bb.png
     */
    private String fileKey;
    /**
     * 文件类型
     */
    private String mimeType;
    /**
     * 文件大小
     */
    private long size;
    /**
     * 存储源
     */
    private String source;
    /**
     * bucket 
     */
    private String bucket;
    /**
     * 是否私有
     */
    private boolean isPrivate;
    public String getOriginalFilename() {
        return originalFilename;
    }
    public void setOriginalFilename(String originalFilename) {
        this.originalFilename = originalFilename;
    }
    public String getFileKey() {
        return fileKey;
    }
    public void setFileKey(String fileKey) {
        this.fileKey = fileKey;
    }
    public String getMimeType() {
        return mimeType;
    }
    public void setMimeType(String mimeType) {
        this.mimeType = mimeType;
    }
    public long getSize() {
        return size;
    }
    public void setSize(long size) {
        this.size = size;
    }
    public String getSource() {
        return source;
    }
    public void setSource(String source) {
        this.source = source;
    }
    public String getBucket() {
        return bucket;
    }
    public void setBucket(String bucket) {
        this.bucket = bucket;
    }
    public boolean isPrivate() {
        return isPrivate;
    }
    public void setPrivate(boolean isPrivate) {
        this.isPrivate = isPrivate;
    }
}
